package com.souche.employment.dto;

import com.souche.employment.domain.JobDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * UserDO.java created at 2017年8月9日 上午11:49:53
 *
 * @author Ray [email:rayinhangzhou@hotmail.com] Revision History Date Programmer Notes
 *         ----------------------------------------------------------
 **/
@Data
public class JobDto implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private String dep1;
    private String dep1Name;
    private String dep2;
    private String dep2Name;
    @ApiModelProperty("岗位在各大招聘网站的链接")
    private String jd;
    private String creator;
    private Date dateCreate;
    private Date dateUpdate;

    public JobDto() {

    }

    public JobDto(JobDO jobDO) {
        this.id = jobDO.getId();
        this.name = jobDO.getName();
        this.dep1 = jobDO.getDep1();
        this.dep2 = jobDO.getDep2();
        this.jd = jobDO.getJd();
        this.creator = jobDO.getCreator();
        this.dateCreate = jobDO.getDateCreate();
        this.dateUpdate = jobDO.getDateUpdate();
    }
}
